<template>
  <div>
    <el-dialog
      title="展示二维码"
      :visible.sync="isShow"
      width="70%"
    >
      <canvas ref="canvas" />
    </el-dialog>
  </div>
</template>

<script>
import Qrcode from 'qrcode'
export default {
  data() {
    return {
      isShow: false
    }
  },
  methods: {
    createImgCode(url) {
      Qrcode.toCanvas(this.$refs.canvas, url, {
        width: 400
      })
    }
  }

}
</script>

<style>

</style>
